@echo off
setlocal enabledelayedexpansion

if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)
exit
echo aaa
goto begin
:begin
@REM 

set WORK_PATH=%cd%
goto conda
@REM goto venv


:conda
set "CONDA_ACTIVATE_CMD=E:\usr\miniconda3\Scripts\activate.bat"
@REM call %CONDA_ACTIVATE_CMD%
cd /D %WORK_PATH%
@REM  相当于conda activate conda_env
@REM call %CONDA_ACTIVATE_CMD% conda_env
call conda activate conda_env
python.exe AILogView.py

goto end

:venv
@REM export PYTHONPATH=$PYTHONPATH:E:\temp\pythonProjects\test01\venv\Lib\site-packages


@REM set PYTHONPATH=Z:\condadir\envs\conda_env;
@REM set PATH=Z:\condadir\envs\conda_env;%PATH%
@REM python.exe AILogView.py
goto end

:end
@echo end
